<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    public function _initDB() {
        try
        {
            $config = new Zend_Config_Ini('../application/configs/application.ini', 'production');
            $db = Zend_Db::factory($config->database);
            Zend_Db_Table_Abstract::setDefaultAdapter($db);
            $registry = Zend_Registry::getInstance();
            //Zend_Registry::setInstance();
            $registry->database = $db;

        }catch (Zend_Db_Exception $e){
            die($e);
        }

    }

}

